import request from '@/utils/request'

// 查询库存锁定记录列表
export function listStockLockRecord(query) {
  return request({
    url: '/core/StockLockRecord/list',
    method: 'get',
    params: query
  })
}

// 查询库存锁定记录详细
export function getStockLockRecord(id) {
  return request({
    url: '/core/StockLockRecord/' + id,
    method: 'get'
  })
}

// 新增库存锁定记录
export function addStockLockRecord(data) {
  return request({
    url: '/core/StockLockRecord',
    method: 'post',
    data: data
  })
}

// 修改库存锁定记录
export function updateStockLockRecord(data) {
  return request({
    url: '/core/StockLockRecord',
    method: 'put',
    data: data
  })
}

// 删除库存锁定记录
export function delStockLockRecord(id) {
  return request({
    url: '/core/StockLockRecord/' + id,
    method: 'delete'
  })
}
